Combined duplicate keydown handlers