support for current key and last key at directive