How do make a keyboard button for save?

I’m looking to add a “press y for save” function, and idk how to do that. please help me