#1754: better keyboard controls for tipping

Now:
+ pushing enter submits your change
+ pushing escape cancels the change
+ when the user starts typing and then pauses for 1 second, the input
is validated again (enabling the "confirm" button)