Update EnemyClass.java

Added logic to find out if the enemy is holding the key.