Initial work on input events handlers.