Button component to use keypress

Hi I am having troubles for the keypress method to come up when using a vaddin flow button component, not sure why. I can get the addclicklistener but not the keypress one

Are you talking about IDE suggestions?

Can you back up a little and explain what you’re trying to achieve?