onKey not called

I'm trying to receive an event from up/down button pressed in my app but the event is never called while pushing any button.

I tried by implementing InputDelegate as shown on the documentation found but I'm unable to make it work.

How can I troubleshoot that?