Implement the 'KEY' primitive for user input