Fixed comparison
Changed method parameter to const char*
Added getKey method and keyConfig variable
Added getAction method