keyfn
bind key events (press/release) to functions in rust