implementing for global key functionality