I decided to wait until I decide how to implement "execute this hotkey only if such-and-such a window is in the foreground" because that may require if statements, and the syntax for the two things should probably be similar.