Updated client to work with keypresses