$mw->bind("", [ \&get_input, Ev('K') ]); # ...snip... sub get_input() { my $input = ; # etc.. }