updated input.clj with last-key-tapped and last-key-pressed functions