Scripts for hotkeys

is there any script that can be used for a hotkey that will allow you to View - Look at Selected or
Show - Isolate select - view selected

Why not just get those commands from the Script Editor after performing those commands, and then copy them into your Hotkey Editor?