Use keyboard/mouse methods instead of functions.