Either enumerator that says which key is enabled, or bunch of boolean variables. Then you is if enumerator == “W enabled” or you just check if boolean variable (for eg. IsWEnabled) is TRUE.
Generally variables (that you set to some values) then checking if variable has right value then deciding with branch if you let or not execution to go trough