You can Nest Mapkeys so that one mapkey initiates another. To nest a mapkey, include the mapkey name preceded by a percent sign (%) in the sequence of commands of the mapkey you are defining.
mapkey $F5 %rd;%qw;%er
About Mapkeys: a mapkey is a keyboard macro that maps frequently used command sequences to certain keyboard keys or sets of keys. You can define a unique key or combination of keys (for example F8, Q1, MP). The mapkeys you can save to configuration file.