adding bitmask for key presses and release storage