I just found out that I've already had Gtk2 DLLs installed and listed in the Path environment variable. Hence Perl attempted to use those DLLs instead of the ones I've fetched on recommendation by the Perl Package Manager. Since then, I've resolved the conflict and was able to run the piece of code you showed me. However just like most of the other modules that I've tried, it didn't respond to my keypresses.