Adding basic keystroke functionality