Removed unused upkey and downkey directives
Prevent undefined value error