fixed gui bug

fixed bug with switching between tools using key shortcuts