If the method succeeds, the return value is non-zero and the
escape sequence for the mapped key is copied into the specified
buffer. If the key has not been mapped, and there is no default
escape sequence defined, then the method will return zero.
The GetMappedKey method returns the escape sequence that
has been mapped to a special key. This method can be used to
determine what sequence of characters should be sent in response to a
keypress (for example, what sequence should be sent to a server
when the user presses the F1 method key). If a sequence has not been
explicitly mapped through a call to SetMappedKey, the default
sequence for the current emulation will be returned.
Note that the current display mode, such as whether or not the
emulator is in application mode or not, should be considered when
determining which mapped key to use. For example, if the emulator is
not in application mode and the user presses the up-arrow key, the
sequence mapped to the NVT_UP key should be sent to the server.
However, if the emulator is in application mode, the sequence mapped
to the NVT_APPUP key should be sent instead. This is automatically
handled by the TranslateMappedKey method, so it is recommended
that it be used when mapping a virtual keypress to the appropriate
escape sequence.