adding in keydown handler