You can put methods inside the enum, so you can just add a getter for the level.
Like this I guess
then you can call it withCode:int getLevel(){ return level; //or LEVEL if you actually spelled it that way }
(You might want to consider using a lower case letter instead of a capital I)Code:Input.getLevel();