Added keylistener to inputbox. Now hitting enter triggers the same
method as the update button