input: added functions to test currently pressed keys/buttons