Fix handling of hardware keyboard in QML.

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>