Support my content by becoming a Medium member or learning more about effective and modern C++ development (Amazon Affiliate links). Traditionally, when handling input for computer graphics applications, e.g. user interfaces, video games, etc., an increasingly long switch statement is used to determine which key is pressed or released or…