Depending on the style of keyboard you have, they may just be a push on fit and if loose a piece of paper or somthing similar may be enough to keep the keys on. If not, the ultimate fix is to replace the keyboard. If it's still in warranty call Dell support. If not you will have to decide if you want to use the keyboard the way it is or buy a new keyboard from Dell.
I am not a Dell Employee
Dell forum member since 2002
Dell Inspiron 15 - 5577 Laptop
Home Built Desktop PC with ASUS Z170, i7 6700K CPU
Windows 10 64 bit Pro and Windows 10 Insider Program Beta Versions. SSD drives. Studio One 3 Recordng Studio Software.
Dell SE2717HR 27" Monitor
Member of Nashville based R.O.P.E.
If you simply place the keys over the hinge and press down, and does not snap in place, then you most likely have a broken part on the back of the key cap or the hinge legs are broken. Since you only have 2 bad keys, it makes alot more sense to spend $8-10 to buy laptop keys replacement, give that a shot. Good luck.
AZNNTOWL2 - Did you notice that this thread is about 9 months old? Maybe it will help another user.
XPS 8100 i7-860(8MB Cache, 2.8GHz), 8GB Dual Channel DDR3 SDRAM @ 1333MHz, 750GB SATA 3.0GB/s 16MB Cache, nVidia GeForce GTS2401GB GDDR3, Dell ST2310 Full HD Widescreen Monitor, AverMedia G2 Combo hybrid TV Tuner, dual 16x DVD+/- RW dbl layer, Microsoft LifeCam Cinema HD, Running Windows 7 Home Premium, 64 bit.