client: handle enter and escape key