Job Entry Customization

If I wanted to execute code after I have searched and selected a
record what would I use? I want something to run either after I type
in a jobnumber during job entry or after I search and select it.