Added key Input statements
Added the action listener