Well in Access you can create a macro to open a form, then you'd just have to call it.
I'd suggest creating a button to run a macro, and set it to run one that opens a form. Then copy that code and paste it in a new function. I think what you can do is an "on key press" function, so you could...