Fix keypad for ICS devices.

Fixes #318